<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="divbox">
        <button data-type="+">+</button>
        <button data-type="-">-</button>
        <button data-type="*">*</button>
        <button data-type="/">/</button>
    </div>
    <script>
         divbox.onclick=function(e){
             if(e.target.tagName==="BUTTON"){
                console.log(e.target.getAttribute("data-type"));
             }
         }
    </script>
</body>
</html>